package com.huatai.datacenter.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.datacenter.entity.datamodel.DataModelEntity;
import com.huatai.datacenter.entity.datamodel.MappingModelDTO;
import com.huatai.datacenter.entity.datamodel.MappingModelEntity;

import java.util.List;

/**
 * 映射模型服务
 *
 * @author lizhong
 * @date 2023年8月2日
 */
public interface MappingModelService extends IService<MappingModelEntity> {

	/**
	 * 查询数据模型清册
	 *
	 * @param mappingModelEntity
	 * @return
	 * @author lizhong
	 */
	Page<MappingModelEntity> selectMappingModelList(MappingModelEntity mappingModelEntity);

	/**
	 * 保存数据模型
	 *
	 * @param mappingModelDTO
	 * @return
	 * @author lizhong
	 */
	boolean insertMappingModel(MappingModelEntity mappingModelDTO);

	/**
	 * 修改数据模型
	 *
	 * @param mappingModelEntity
	 * @return
	 * @author lizhong
	 */
	boolean updateMappingModel(MappingModelEntity mappingModelEntity);

	/**
	 * 删除数据模型
	 *
	 * @param mappingModelEntities
	 * @return
	 * @author lizhong
	 */
	boolean deleteByIds(List<MappingModelEntity> mappingModelEntities);
}
